/**
 * 
 */
package com.sf.osms.dep.groovy

import com.sf.osms.dep.domain.Router
import java.util.List
import java.util.Map
import org.slf4j.Logger
import org.slf4j.LoggerFactory

/**
 * @author sfhq1405
 *
 */
public class BarTimeRepair implements GroovyInterface{

	private static Logger logger = LoggerFactory.getLogger("BarTimeRepair");
	
	/* (non-Javadoc)
	 * @see com.sf.osms.dep.groovy.GroovyInterface#hanleCorrectRoutersList(java.util.List)
	 */
	public void hanleCorrectRoutersList(List list){
		// TODO Auto-generated method stub
	}
	
	/* (non-Javadoc)
	 * @see com.sf.osms.dep.groovy.GroovyInterface#handleSimgleOrginalRouter(java.util.Map)
	 */
	public void handleSimgleOrginalRouter(Map map){
	
		def barTime = map['strActionTime']
		if(barTime){
			if(barTime.length() < 4){
				int c = 4 - barTime.length();
				for(int i=0;i<c;i++){
					barTime = "0" + barTime;
				}
			}
			map['strActionTime'] = barTime;
		}
	}
	
	/* (non-Javadoc)
	 * @see com.sf.osms.dep.groovy.GroovyInterface#handleSimgleRouter(com.sf.osms.dep.domain.Router)
	 */
	public void handleSimgleRouter(Router router){
		// TODO Auto-generated method stub
	}
	
}
